/*
 ============================================================================
 Name		: FileBrowserDocument.cpp
 Author	  : William Zhang
 Copyright   : all rights reserved.
 Description : CFileBrowserDocument implementation
 ============================================================================
 */

// INCLUDE FILES
#include "FileBrowserAppUi.h"
#include "FileBrowserDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CFileBrowserDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CFileBrowserDocument* CFileBrowserDocument::NewL(CEikApplication& aApp)
	{
	CFileBrowserDocument* self = NewLC(aApp);
	CleanupStack::Pop(self);
	return self;
	}

// -----------------------------------------------------------------------------
// CFileBrowserDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CFileBrowserDocument* CFileBrowserDocument::NewLC(CEikApplication& aApp)
	{
	CFileBrowserDocument* self = new (ELeave) CFileBrowserDocument(aApp);
	
	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CFileBrowserDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CFileBrowserDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CFileBrowserDocument::CFileBrowserDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CFileBrowserDocument::CFileBrowserDocument(CEikApplication& aApp) :
	CAknDocument(aApp)
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CFileBrowserDocument::~CFileBrowserDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CFileBrowserDocument::~CFileBrowserDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CFileBrowserDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CFileBrowserDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return new (ELeave) CFileBrowserAppUi;
	}

// End of File
